package com.zhuiyun.project.api.memberTypeManagement.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zhuiyun.project.api.memberTypeManagement.entity.MemberTypeManagement;
import com.zhuiyun.project.api.memberTypeManagement.model.MemberTypeManagementModel;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @InterfaceName MemberTypeMapper
 * @Description TODO 会员类型管理数据层接口
 * @Author WX
 * @Date 2023/11/2 11:40
 **/
@Mapper
public interface MemberTypeMapper extends BaseMapper<MemberTypeManagement> {
    /**
     * @Author WX
     * @Description 获取会员类型信息
     * @Date 2023/11/2 13:52
     * @Return
     * @param memberTypeManagementModel
     */
    List<MemberTypeManagement> getMemberType(MemberTypeManagementModel memberTypeManagementModel);
    /**
     * @Author WX
     * @Description 通过id获取会员类型信息
     * @Date 2023/11/2 15:20
     * @Return
     * @param id
     */
    MemberTypeManagement getById(Integer id,String venueUniqueIdentifier);
    /**
     * @Author WX
     * @Description 添加会员类型信息
     * @Date 2023/11/2 15:58
     * @Return
     * @param memberTypeManagement
     */
    int addMember(MemberTypeManagement memberTypeManagement);
    /**
     * @Author WX
     * @Description 通过id删除会员类型信息
     * @Date 2023/11/2 19:02
     * @Return
     * @param id
     */
    int delMember(Integer id,String venueUniqueIdentifier);
    /**
     * @Author WX
     * @Description 通过id修改会员类型信息
     * @Date 2023/11/2 19:19
     * @Return
     * @param memberTypeManagement
     */
    int updateMemberById(MemberTypeManagement memberTypeManagement);
    /**
     * @Author WX
     * @Description 修改会员状态
     * @Date 2023/11/2 19:32
     * @Return
     * @param enableStatu id
     */
    int updateEnableStatus(int id, int enableStatu, String venueUniqueIdentifier);
    /**
     * @Author wx
     * @Description 查询会员类型信息
     * @Date 2023/11/6 9:20
     * @Return
     */
    List<MemberTypeManagement> getMemberList(String venueUniqueIdentifier);
    /**
    * @Author wx
    * @Description
    * @Date 2023/12/28 8:28
    * @Return
    * @param id
    */
    MemberTypeManagement selectType(String venueUniqueIdentifier, Integer id);
}
